package com.mixmall.controller;

import com.mixmall.service.IMaiProductOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author caozhiren
 * @since 2024-09-24
 */
@RestController
@CrossOrigin
@RequestMapping("/mixmall/maiProductOrder")
public class MaiProductOrderController {
    @Autowired
    IMaiProductOrderService maiProductOrderService;

    @RequestMapping("/list")
    public Object getCateList(){
        System.out.println("==========================");
        return maiProductOrderService.list();
    }
}
